#!/bin/bash

cd /root/tsingyun/rubber-pore
rm -rf rubber_pore

echo "更新代码..."
git pull


echo "开始打包..."
npm install
npm run build
echo "打包完成."

rm -rf /www/server/nginx/html/rubber_pore
cp -r /root/tsingyun/rubber-pore/rubber_pore /www/server/nginx/html
echo "部署完成..."